import { baseRequest } from '@/utils/request'
// const request = (url, ...arg) => baseRequest(`/tjzy/repairphonenumber/` + url, ...arg)
//新失联接口
const request = (url, ...arg) => baseRequest(`/tjzy/repair/` + url, ...arg)

/**
 * gzx_repair_phonenumberApi接口管理器
 *
 * @author 刘志刚
 * @date  2025/01/10 10:16
 **/
export default {
	// 获取gzx_repair_phonenumber分页
	gzxRepairPhonenumberPage(data) {
		return request('page', data, 'get')
	},
	// 提交gzx_repair_phonenumber表单 edit为true时为编辑，默认为新增
	gzxRepairPhonenumberSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除gzx_repair_phonenumber
	// gzxRepairPhonenumberDelete(data) {
	// 	return request('delete', data)
	// },
	//新删除接口
	gzxRepairPhonenumberDelete(id) {
		return request(`delete/${id}`, null)
	},
	// 获取gzx_repair_phonenumber详情
	gzxRepairPhonenumberDetail(data) {
		return request('detail', data, 'get')
	},
	getRepairResult(data) {
		return request('getRepairResult', data)
	},
	importExcel(data) {
		return request('importExcel', data)
	},
	repair(data) {
		return request('repair', data)
	},
	getAllRepairResult() {
		return request('getAllRepairResult')
	},
	exportExcel(data) {
		return request('exportExcel', data, 'post', {
			responseType: 'blob'
		})
	}
}
